import request from '@/utils/request'

//查询轨迹员工列表
export function trajectoryList(query) {
  return request({
    url: '/system/employee/listTrajectoryToEmployee',
    method: 'get',
    params: query
  })
}
//查询员工时间间段内轨迹
export function trajectoryDetail(query) {
  return request({
    url: '/system/employee/listTrajectory',
    method: 'get',
    params: query
  })
}
//查询轨迹车辆列表
export function cartrajectoryList(query) {
  return request({
    url: '/system/carTrajectory/getCarMovingTrajectory',
    method: 'get',
    params: query
  })
}
//根据名称查询车辆轨迹
export function cartrajectoryDetail(query) {
  return request({
    url: '/system/car/list',
    method: 'get',
    params: query
  })
}
//查询作业配置
export function getconfig(query) {
  return request({
    url: '/system/config/get',
    method: 'get',
    params: query
  })
}
//修改作业配置
export function updateconfig(data) {
  return request({
    url: '/system/config/update',
    method: 'post',
    data: data
  })
}
